home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / hardware / ahd12 / ahd / glue.s < prev    next >
Text File  |  2000-02-28  |  2KB  |  71 lines

  1.         xref    readsec
  2.         xref    writesec
  3.         xref    dofmttrk
  4.         xref    doinit
  5.         xref    doreset
  6.         xref    hdconfig
  7.  
  8.         xdef    _readhardsec
  9.         xdef    _writehardsec
  10.         xdef    _fmthard
  11.         xdef    _doinit
  12.         xdef    _doreset
  13.         xdef    _hdconfig
  14.  
  15.         section "gluecode",code
  16.  
  17. _readhardsec:           ; int readhardsec(data, offset, length);
  18.         link    a5,#0
  19.         move.l  8(a5),a2        ; char *data
  20.         move.l  12(a5),d0       ; ULONG offset
  21.         move.l  16(a5),d1       ; ULONG length
  22.         move.b  #0,d3
  23.  
  24.         jsr     readsec
  25.  
  26.         unlk    a5
  27.         rts
  28.  
  29. _writehardsec:           ; int writehardsec(data, offset, length);
  30.         link    a5,#0
  31.         move.l  8(a5),a2        ; char *data
  32.         move.l  12(a5),d0       ; ULONG offset
  33.         move.l  16(a5),d1       ; ULONG length
  34.         move.b  #0,d3
  35.  
  36.         jsr     writesec
  37.  
  38.         unlk    a5
  39.         rts
  40.  
  41. _fmthard:               ; int fmthard(offset);
  42.         link    a5,#0
  43.         move.l  8(a5),d0
  44.         move.b  #0,d3
  45.  
  46.         jsr     dofmttrk
  47.  
  48.         unlk    a5
  49.         rts
  50.  
  51. _doinit:                ; int doinit(void);
  52.         move.b  #0,d3
  53.         jmp     doinit
  54.  
  55. _doreset:               ; int doreset(void);
  56.         move.b  #0,d3
  57.         jmp     doreset
  58.  
  59. _hdconfig:              ; int hdconfig(short *);
  60.         link    a5,#0
  61.         move.l  8(a5),a0
  62.         move.b  #0,d3
  63.  
  64.         jsr     hdconfig
  65.  
  66.         unlk    a5
  67.         rts
  68.  
  69.         end
  70.  
  71.